TextFace
TheTextFace
procedure sets the style of the font in which the text is to be drawn in the current graphics port.
PROCEDURE TextFace (face: Style);
face
- The style for text to be drawn in the current graphics port.
DESCRIPTION
The TextFace procedure sets the value for the style of the font in the text face (txFace
) field of the current graphics port. TheStyle
data type allows you to specify a set of one or more of the following predefined constants:bold
,italic
,underline
,outline
,shadow
,condense
, andextend
. In Pascal, you specify the constants within square brackets. For example:
TextFace([bold]); {bold} TextFace([bold,italic]); {bold and italic}The style is set to the empty set ([]
) by default, which specifies plain. For more information, see "Modifying the Text Style" on page 3-21.ASSEMBLY-LANGUAGE INFORMATION
In assembly language, the style set is stored as a word whose low-order byte contains bits representing the style. The bit numbers are specified by the following global constants.
Constant Bit Meaning bold 0 Bold style italicBit 1 Italic style ulineBit 2 Underlined style outlineBit 3 Outlined style shadowBi t
4 Shadowed style condense 5 Condensed style e xtendBit
6 Extended style If all bits are
0
, the low-order byte represents the plain glyph style.